package com.gykfbxxh.imovie.config;

import android.os.Environment;

import com.gykfbxxh.imovie.AppApplication;

import java.io.File;

/**
 * Created by xuxinghai
 * On 2017/8/17
 * 程序配置文件
 */

public class AppConfigTools {

    public static final String APICODE = "u6kk09iZNuLgZcuP";//渠道接口api标识

    public static boolean isSetNotify;//是否设置通知栏
    public static boolean isLoadImage;//是否加载图片
    public static int netType;//当前的网络类型
    public static boolean isUseWifi;// 是否仅wifi加载图片
    public static String TOKENSTR = "" ;//用户Token
    public static boolean isShowPushDialog;//是否展示推送弹窗
    public static final String UMENG_TOKEN = "umeng_token";//友盟推送的token



    /********************各个缓存文件夹配置  start*******************/
    // 文件路径配置
    public static final String SPREARATOR = File.separator;// 获取系统文件路径分隔符
    public static final String CACHEFOLDER = "gykfbxxhimovie"; // 缓存的文件夹名字
    public static final String SDCARDPATH = Environment
            .getExternalStorageDirectory().getAbsolutePath()+SPREARATOR+CACHEFOLDER;// sd卡根路径
    ///Android/data/<包名>/
    public static final String SDCARDPATH1  = Environment
            .getExternalStorageDirectory().getAbsolutePath()+SPREARATOR+"Android"+SPREARATOR+"data"+SPREARATOR+ AppApplication.getInstance().getPackageName();// sd卡根路径(仅适用于离线下载)

//	public static final String DATAPATH=AppApplication.getInstance().getFilesDir().getAbsolutePath();//data路径

    public static final String IMGCACHE = "imgCache";// 缓存图片的文件夹

    public static final String ALLIMGPATHFloder = SDCARDPATH1+ SPREARATOR +IMGCACHE;//所有缓存图片的父文件夹 freso的

    public static final String OKHTTPFloder = SDCARDPATH1+ SPREARATOR +"okhttpImg";//okhttp缓存文件夹

    public static final String NEWS_OFF_LINE = SDCARDPATH1 + SPREARATOR+ "offLine";// 离线下载的文件夹

//	public static final String DEBUGFILE = SDCARDPATH1 + SPREARATOR + "debug";// debug文件夹

    public static final String USERSAVEIMG = SDCARDPATH + SPREARATOR + "img";// 用户下载的图片文件夹

    public static final String APKFLODER = SDCARDPATH+ SPREARATOR + "apk";// 下载apk的文件夹

//	public static final String WEBFLODER = SDCARDPATH1 + SPREARATOR
//			+ CACHEFOLDER + SPREARATOR + "web";// web浏览器的缓存文件夹

    //图片的资源缓存地址
    public static final String RESOUCENAME = "res://com.gykfbxxh.imovie/";//本地资源文件

    /********************各个缓存文件夹配置  end*******************/


    /********************第三方 ID配置 start*******************/
    public static final String WECHAT_ID="wxb53d76b3baeae257";//微信平台 appid
    public static final String WECHAT_SECRET="582db692dad8ace0afe773b95b491969";//微信平台 SECRET

    public static final String QQ_APPID="1105420681";//QQ/QZONE平台 APPID
    public static final String QQ_APPKEY="S9P099dc8FjhBhGJ";//QQ/QZON APPKEY

    public static final String SINA_APPID="3521290273";//新浪微博APPID
    public static final String SINA_APPKEY="dd44cf1749de9aecba521f38dcfef45a";//新浪微博 APPKEY

}
